Accessibility

Conclusion

Overall, I found that ColdFusion MX/J2EE hybrid applications are an extremely viable architecture for enterprise level and web-based application development. Using these two technologies together results in something greater than a sum of their parts.

J2EE shines when it comes to handling transactions, integrating disparate applications, handling application data and processing business logic. Additionally, Java has a low-level API that can virtually accomplish anything programmatically. This can bring a previously unavailable level of control and scalability to ColdFusion MX applications.

At the same time, ColdFusion MX provides a strong application framework, a comprehensive tag-based syntax and an ease-of-use that JSP pages and servlets alone can’t compete with. Don’t underestimate the ability of ColdFusion developers to develop applications quickly. This exercise showed that you can save a considerable amount of time (and expense) by using ColdFusion as the controller and the UI for J2EE applications. You accomplish all this without losing performance—the resulting CFML pages still compile into servlets that will execute as fast as other servlets on the same J2EE application server.

In addition, the level of expertise needed to develop ColdFusion pages is not as great as that required to develop JSP pages. This allows higher-paid programmers to focus on the core business logic and application integration, while designers and ColdFusion developers focus in the UI and program flow of the application. At the same time, the ability of ColdFusion MX to call Java classes, include servlets, import JSP custom tags, and other J2EE integration features allows everyone to use the same core logic. This is a much clearer separation of labor than was previously available.

Because of all these factors, I have to recommend a hybrid architecture to anyone planning either a J2EE application or a ColdFusion application. Download the source code, see for yourself, and draw your own conclusions.

Submit feedback on our tutorials, articles, and sample applications.